import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import MdEditor from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import * as IconParkMap from '@icon-park/vue-next/es/map';
import 'highlight.js/styles/atom-one-dark.css'	//样式

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App)

Object.values(IconParkMap).forEach(function (icon) {
    // app.component(icon.name.replace("icon-", ""), icon);
    app.component(icon.name, icon);
});
app.use(router)
app.use(pinia)
app.use(MdEditor)
app.use(ElementPlus)


app.mount('#app')
